﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yto.Entities;

namespace com.ytocargo.Core.FplRouteDetails
{
    [Table("FPL_ROUTE_DETAIL")]
    public class FplRouteDetail : Entity
    {
        [Key, Column("FLIGHT_DATE", Order = 1)]
        public DateTime FlightDate { get; set; }

        [Key, Column("FLIGHT_NO", Order = 2)]
        public string FlightNo { get; set; }

        [Key, Column("DEP_APT", Order = 3)]
        public string DepApt { get; set; }

        [Key, Column("ARR_APT", Order = 4)]
        public string ArrApt { get; set; }

        [Column("ROUTE_CODE")]
        public string RouteCode { get; set; }

        [Key, Column("ID", Order = 5)]
        public override int Id { get => base.Id; set => base.Id = value; }

        [Column("LONGITUDE")]
        public string Longitude { get; set; }

        [Column("LATITUDE")]
        public string Latitude { get; set; }

        [Column("FLT_LAYER")]
        public int? FltLayer { get; set; }

        [Column("OIL_NUMBER")]
        public decimal? OilNumber { get; set; }

        [Column("POINT_NAME")]
        public string PointName { get; set; }

        [Column("ACTUAL_OIL_NUM")]
        public double? ActualOilNum { get; set; }

        [Column("ACTUAL_FLT_LAYER")]
        public int? ActualFltLayer { get; set; }

        [Column("WIND_DIRC")]
        public int? WindDirc { get; set; }

        [Column("WIND_SPEED")]
        public int? WindSpeed { get; set; }

        [Column("ACT_WIND_DIRC")]
        public int? ActWindDirc { get; set; }

        [Column("ACT_WIND_SPEED")]
        public int? ActWindSpeed { get; set; }

        [Column("TEMPERATURE")]
        public string Temperature { get; set; }

        [Column("ACT_TEMPERATURE")]
        public string ActTemperature { get; set; }

        [Column("SEG_TIME")]
        public int? SegTime { get; set; }

        [Column("ACT_SEG_TIME")]
        public int? ActSegTime { get; set; }

        [Column("TEM_DEVIATION")]
        public string TemDeviation { get; set; }

        //发送标志
        [Column("SEND_FLAG")]
        public bool SendFlag { get; set; }

    }
}
